package Task;

import java.io.Serializable;
import java.util.*;

public class Task implements Serializable
{
	/**
	 * 
	 */
	private static final long serialVersionUID = -4643007824384653153L;
	
	protected long id;
	protected String command;
	protected Vector<String> files;
  protected String generator;
	
	public Task(long anId, String aCommand, Vector<String> aListOfFiles)
	{
		super();
		
		id = anId;
		if(aCommand!=null)
			command = aCommand;
		else
			command = new String();
		
		if(aListOfFiles!=null)
			files = aListOfFiles;
		else
			files = new Vector<String>();
	}
	
	public long getId()
	{
		return this.id;
	}
	
	public String getCommand()
	{
		return this.command;
	}
	
	public Vector<String> getFiles()
	{
		return this.files;
	}
	
	public void setId(long newId)
	{
		id = newId;
	}
	
	public void setCommand(String newCommand)
	{
		command = new String(newCommand);
	}
	
	public void setFiles(Vector<String> newFiles)
	{
		files = new Vector<String>(newFiles);
	}
	
	public String toString()
	{
		return command + " from " + generator;
	}
}